
//
//  PathNode.cpp
//  IsoCplus
//
//  Created by 周张林 on 15/9/15.
//
//

#include "PathNode.h"


bool PathNode::init(int nodeX,int nodeY)
{
    this->x = nodeX;
    this->y = nodeY;
    return true;
}

PathNode::~PathNode(){
    parent = nullptr;
    if(!links.empty()){
        for (auto &item :links) {
            delete item;
            item = nullptr;
        }
    }
}